﻿<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="utf-8" %>

<form id="form1">
    <div class='myzh_right_content fr'>
        <p class='right_head_title'><span class="span1">我的 ></span> 操作</p>
        <div class="recharge-content">
            <input type="hidden" id="oid" name="oid" value="${data.oid}"/>
            <div class="mt-10">
                <span class="fl mt-3 w-120">订单编号：</span>
                ${data.oid}
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">下单时间：</span>
                <fmt:formatDate value="${data.create_time}" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate>
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">项目编号：</span>
                ${data.pid}
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">购买数量：</span>
                ${data.buy_count}
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">bonus比例：</span>
                ${data.bonus}
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">bonus值：</span>
                ${data.bonus_count}
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">买家收到数量：</span>
                ${data.final_buy_count}
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">卖家实际付出数：</span>
                ${data.final_sell_count}
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">下单时商品的汇率：</span>
                ${data.token_price}
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">支付token数：</span>
                ${data.buyer_paid}
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">卖家收到token数：</span>
                ${data.seller_earned}
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">买家平台佣金（具体佣金金额）：</span>
                ${data.buyer_platform_commission}
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">买家佣金token类型：</span>
                ${data.buyper_commission_token_type}
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">卖家平台佣金（具体佣金金额）：</span>
                ${data.seller_platform_commission}
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">卖家佣金token类型：</span>
                ${data.seller_commission_token_type}
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">Token名称：</span>
                ${data.token_name}
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">支付使用token名称：</span>
                ETH
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">t_user_eth表里的site：</span>
                <input type="text" class="txt txt-1 fl w-220" id="token_site" name="token_site"
                       value="${data.token_site}">
                <div class="cl"></div>
            </div>

            <div class="mt-10">
                <span class="fl mt-3 w-120">真实姓名(快照)：</span>
                ${order_kyc.true_name}
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">护照号码(快照)：</span>
                ${order_kyc.passport_code}
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">护照正面(快照)：</span>
                <a href="${imgurl}${order_kyc.img_passport_front}" target="_blank">
                    <img src="${imgurl}${order_kyc.img_passport_front}" width="200" height="200">
                </a>
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">护照反面(快照)：</span>
                <a href="${imgurl}${order_kyc.img_passport_after}" target="_blank">
                    <img src="${imgurl}${order_kyc.img_passport_after}" height="200" width="200">
                </a>
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">手持护照(快照)：</span>
                <a target="_blank" href="${imgurl}${order_kyc.img_passport_hold}">
                    <img src="${imgurl}${order_kyc.img_passport_hold}" height="200" width="200">
                </a>
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">常住地址(快照)：</span>
                ${order_kyc.address}
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">常住地址截图说明(快照)：</span>
                <a href="${imgurl}${order_kyc.img_address}" target="_blank">
                    <img src="${imgurl}${order_kyc.img_address}" width="200" height="200">
                </a>
                <div class="cl"></div>
            </div>
            <div class="mt-10">
                <span class="fl mt-3 w-120">国家：</span>
                ${order_kyc.country}
                <div class="cl"></div>
            </div>
            <%--<div class="mt-10">--%>
            <%--<span class="fl mt-3 w-120">卖家用户编号：</span>--%>
            <%--<input type="text" class="txt txt-1 fl w-220" id="seller_user_id" name="seller_user_id"--%>
            <%--value="${order_kyc.seller_user_id}">--%>
            <%--<div class="cl"></div>--%>
            <%--</div>--%>
            <%--<div class="mt-10">--%>
            <%--<span class="fl mt-3 w-120">买家用户编号：</span>--%>
            <%--<input type="text" class="txt txt-1 fl w-220" id="buyer_user_id" name="buyer_user_id"--%>
            <%--value="${order_kyc.buyer_user_id}">--%>
            <%--<div class="cl"></div>--%>
            <%--</div>--%>

            <div class="mt-30 ml-10">
                <input type="button" class="btn btn-2 fl w-100 ml-20" value="返回"
                       onclick="window.location='${basePath}/t_order/list'">
            </div>
        </div>
    </div>
</form>
<div class='clear'></div>
<script type="text/javascript">
    function add() {
        $.post("${basePath}/ajax/t_order/add", $("#form1").serialize(), function (d) {
            if (d.code == 1) {
                alert("成功");
                window.location = "${basePath}/t_order/list";
                return;
            }
            alert("失败");
        });
    }
</script>


